package com.example.longimageView.db;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * @author: njb
 * @date: 2023/4/7 11:28
 * @desc:
 */
@Table(name = "wireless_device_list")
public class WireLessDataBaseBean implements Serializable {
    /**
     * 设备ID，数据库主键
     */
    @Column(name = "applianceId", isId = true, property = "UNIQUE")
    public String applianceId;//"applianceId":49

    @Column(name = "deviceName", property = "NOT NULL")
    public String deviceName;//"friendlyName":"房灯"

    @Column(name = "deviceType")
    public String deviceType;//"friendlyDescription":"灯光控制"
    /**
     * 设备类型：0场景模式、1灯具、2空调、3窗帘、4电视、其他类型暂时没有定义（门锁、感应、红外、水流、门磁、插卡取电、插座、门牌）
     */
    @Column(name = "devicesType")
    public int devicesType;

    @Column(name = "action")
    public boolean action;//开关状态

    @Column(name = "mode")
    public String mode;//空调的模式

    @Column(name = "speed")
    public String speed;//空调的风速

    @Column(name = "temperature")
    public int temperature;//空调的温度

    @Column(name="values")
    public String values;//亮度


    public String getApplianceId() {
        return applianceId;
    }

    public void setApplianceId(String applianceId) {
        this.applianceId = applianceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public int getDevicesType() {
        return devicesType;
    }

    public void setDevicesType(int devicesType) {
        this.devicesType = devicesType;
    }

    public boolean isAction() {
        return action;
    }

    public void setAction(boolean action) {
        this.action = action;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public int getTemperature() {
        return temperature;
    }

    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }

    public String getValues() {
        return values;
    }

    public void setValues(String values) {
        this.values = values;
    }

    @Override
    public String toString() {
        return "WireLessDataBaseBean{" +
                "applianceId='" + applianceId + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", devicesType=" + devicesType +
                ", action=" + action +
                ", mode='" + mode + '\'' +
                ", speed='" + speed + '\'' +
                ", temperature=" + temperature +
                ", values='" + values + '\'' +
                '}';
    }
}
